package com.woniuxy.store.client;

import com.woniuxy.store.client.param.tableParam.AddTableTypeParams;
import com.woniuxy.store.client.param.tableParam.ModifyTableTypeParams;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;
import result.Result;

@FeignClient(contextId = "tableTypeClient",name="store",path="/store/table")
public interface TableTypeClient {

    @PostMapping("/addTableType")
    public Result addTableType(@RequestBody AddTableTypeParams addTableTypeParam);

    @PutMapping("/modifyTableType")
    public Result modifyTableType(@RequestBody ModifyTableTypeParams modifyTableTypeParam);

    @DeleteMapping("/deleteTableType")
    public Result deleteTableType(@RequestParam("tableTypeId")Integer tableTypeId);

    @GetMapping("/getTableType")
    public Result getTableType(@RequestParam("tableTypeId")Integer tableTypeId);

    @GetMapping("/getAllTableType")
    public Result getAllTableType();




}
